﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kinect_Interface_Prototype_1.Interface_Design
{
    public partial class OnOffIndicator : OnOffControl
    {
        public OnOffIndicator(int x, int y) : base(x,y)
        {
            SetImage();
            this.Size = new Size(150, 77);
        }

        public OnOffIndicator(bool state, int x, int y) : base(state, x, y)
        {
            SetImage();
            this.Size = new Size(150, 77);
        }

        protected override void SetImage()
        {
            this.BackgroundImage = state ? Constants.OnIndicator : Constants.OffIndicator;
        }
    }
}
